<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition template="/pages/templates/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:o="http://omnifaces.org/ui">

	<ui:define name="title">
	Bienvenido
    </ui:define>

	<ui:define name="content">

		<h:form id="form">

			<p:growl id="growl" showDetail="true" life="4000" widgetVar="Test" />
			
		<o:importConstants type="pe.edu.sisclas.model.domain.constants.MessagesView" />
		<script type="text/javascript">
			function handleComplete(xhr, status, args) {
				if(args.validationFailed) {
					showError();
				}
			}
		</script>

		

			<!-- Panel principal -->
			<p:panel styleClass="panePrincipal">
				<div id="cuerpo">
					

				</div>
			</p:panel>

			<p:remoteCommand name="updateGrowl" update=":form:growl" />

			<p:confirmDialog global="true" showEffect="fade" hideEffect="explode">
				<p:commandButton value="Si" type="button"
					styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
				<p:commandButton value="No" type="button"
					styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
			</p:confirmDialog>

		</h:form>

	</ui:define>
</ui:composition>